package org.celery.modules.ticket.wrapper;

import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.BaseEntityWrapper;
import org.springblade.core.tool.utils.BeanUtil;
import org.celery.modules.ticket.entity.Ticket;
import org.celery.modules.ticket.vo.TicketVO;

/**
 * 订单表包装类,返回视图层所需的字段
 *
 * @author Celery
 * @since 2023-06-12
 */
public class TicketWrapper extends BaseEntityWrapper<Ticket, TicketVO>  {

    public static TicketWrapper build() {
        return new TicketWrapper();
    }

	@Override
	public TicketVO entityVO(Ticket ticket) {
		TicketVO ticketVO = BeanUtil.copy(ticket, TicketVO.class);

		return ticketVO;
	}

}
